//环境变量
// let api = process.env.VUE_APP_BASE_URL;// /api
//接口地址
const base = {
  //首页
  totalInfo: '/home/dataCount',//首页统计数据
  orderInfo: "/home/orderinfo",//订单数据
  format: "/home/format",//折线数据
  // //打包
  // totalInfo: api + '/home/dataCount',//首页统计数据
  // orderinfo: api + "/home/orderinfo",//订单数据
  // format: api + "/home/format",//折线数据

  //订单管理
  orderList: "/order/list",//订单列表 page
  changeStatus: "/order/changeStatus",//订单汇总 
  collect: "/order/collect",//汇总清单列表 page
  cancel: '/order/cancel',//撤销汇总 id
  detail: "/order/list/detail",//订单详情  id

  //产品管理
  projectList: "/goods/projectList", //产品列表
  search: "/goods/search", //搜索接口
  deleteItemById: "/goods/deleteItemById", //删除商品操作
  selectItemCategoryByParentId: "/goods/itemCategory/selectItemCategoryByParentId", //商品类目

  //图片上传接口
  insertTbItem: "/goods/item/insertTbItem", //添加商品
  batchDelete: "/goods/batchDelete", //批量删除
  updateTbItem: "/goods/item/updateTbItem", //修改商品

  //产品分类
  itemCategory: "/itemCategory",
  insertItemCategory: "/itemCategory/insertItemCategory", //新增子类目录名称 cid name
  deleteContentCategoryById: "/content/deleteContentCategoryById", //删除类名 id
  updateCategory: "/itemCategory/updateCategory", //修改类目 id name
  insertCategory: "/itemCategory/insertCategory", //新增一级分类名称 name

  //广告分类管理
  selectContentCategoryByParentId: '/advert/content/selectContentCategoryByParentId',
  insertContentCategory: '/advert/content/insertContentCategory',// 增加子导航,
  updateContentCategory: '/advert/content/updateContentCategory',// 修改子导航,
  deleteContentCategoryById2: '/advert/content/deleteContentCategoryById',// 删除子导航 pid,
  insertTbContent: '/advert/content/insertTbContent',// 内容增加,
  deleteContentByIds: '/advert/content/deleteContentByIds',// 内容删除 /content/deleteContentByIds,
  getselectTbContentAllByCategoryId: '/advert/content/selectTbContentAllByCategoryId',//内容分类管理 内容查询,

  //登录
  login: "/login", //登录接口 user pwd---post
  permission: "/permission1", //用户权限 token
}

//单一导出
export const host = 'http://localhost:8088';
//导出图片上传的url地址
export const uploadUrl = `${import.meta.env.VITE_API_URL}/upload`;

export default base